package cn.itcast.p2p20.net;

/**
 * Created by Administrator on 2016/7/24.
 * <p/>
 * 封装响应的数据
 */
public abstract class BaseReponse<T> {

    public int code;

    public T data;

    public String error;

    public boolean success() {

        return code >= 200 && code < 300;
    }

}
